package com.david.auth.pojo.api.fallback;


import com.david.auth.pojo.api.AuthApi;
import com.david.auth.pojo.query.TokenQuery;
import com.david.auth.pojo.result.R;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;


/**
* 验证服务
*
* @author David
* @Date 2022-04-18 17:18:27
*/ 
@Component
public class AuthApiFallback implements AuthApi {

    static Logger log = LoggerFactory.getLogger(AuthApiFallback.class);


    @Override
    public R verifyToken(TokenQuery tokenQuery) {
        log.error("鉴权服务调用失败!参数{}", tokenQuery);
        return R.fail();
    }
}
